import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },

    {
      path: '/destination',
      name: 'destination',
      component: () => import('../views/DestinationView.vue'),
    },
    {
      path: '/orders',
      name: 'orders',
      component: () => import('../views/OrdersView.vue'),
    },
    {
      path: '/ai',
      name: 'ai',
      component: () => import('../views/AIRecommendView.vue'),
    },
    {
      path: '/profile',
      name: 'profile',
      component: () => import('../views/ProfileView.vue'),
    },
    {
      path: '/picture',
      name: 'picture',
      component: () =>   import('../views/UpPicture.vue'),
    },
    {
      path: '/verify-identity',
      name: 'verify-identity',
      component: () => import('../views/UpPicture.vue'),
    },
    {
      path: '/verified-identity',
      name: 'verified-identity',
      component: () => import('../views/VerifiedIdentityView.vue'),
    },
    {
      path: '/pending-verification',
      name: 'pending-verification',
      component: () => import('../views/PendingVerificationView.vue'),
    },
    {
      path: '/user/login',
      name: 'login',
      component: () => import('../views/Login.vue'),
    },
    {
      path: '/dingtalk/callback',
      name: 'dingtalk-callback',
      component: () => import('../views/DingTalkCallback.vue'),
    },
    {
      path: '/personal-info',
      name: 'personal-info',
      component: () => import('../views/PersonalInfoView.vue'),
    },
    {
      path: '/consultation',
      name: 'consultation',
      component: () => import('../views/ConsultationView.vue'),
    },
    {
      path: '/rag-chat',
      name: 'rag-chat',
      component: () => import('../views/RagChatView.vue'),
    },
    {
      path: '/coze-chat',
      name: 'coze-chat',
      component: () => import('../views/CozeChatView.vue'),
    },
    {
      path: '/train-search',
      name: 'train-search',
      component: () => import('../views/TrainSearchView.vue'),
    },
    {
      path: '/hotels',
      name: 'hotels',
      component: () => import('../views/HotelListView.vue'),
    },
    {
      path: '/hotel/:id',
      name: 'hotel-detail',
      component: () => import('../views/HotelDetailView.vue'),
    },
    {
      path: '/order/confirm',
      name: 'order-confirm',
      component: () => import('../views/OrderConfirmView.vue'),
    },
    {
      path: '/payment',
      name: 'payment',
      component: () => import('../views/PaymentView.vue'),
    },
  ],
})

export default router
